let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n67,
                    i =
                    (this && this.__extends) ||
                    ((_n67 = function n(t, e) {
                            return (_n67 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n67(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.CardType3 = void 0);
                var r = t('UIComponent'),
                    a = t('CardMrg'),
                    s = t('AbsInfo'),
                    c = t('ComUtils'),
                    l = t('CardType3Com'),
                    u = (function(t) {
                        function e() {
                            return (null !== t && t.apply(this, arguments)) || this;
                        }
                        return (
                            i(e, t),
                            (e.prototype.onInit = function() {
                                t.prototype.onInit.call(this),
                                    (this.ItemView = this.view.getChildByName('CardItem')),
                                    (this.ItemView.parent = null),
                                    (this._layout = this.view.getChildByName('layout')),
                                    a.CardMrg.ins.on(
                                        s.InfoEvent.StateChanged,
                                        this.onStateChangled,
                                        this
                                    ),
                                    this.onStateChangled();
                            }),
                            (e.prototype.onStateChangled = function() {
                                for (var t = [], e = 0; e < a.CardMrg.ins.items.length; e++) {
                                    (n = a.CardMrg.ins.items[e]).own || t.push(n);
                                }
                                if (t.length > 0) {
                                    var o = Math.max(t.length, this.coms.length);
                                    for (e = 0; e < o; e++) {
                                        var n = t[e],
                                            i = this.coms[e];
                                        n && i ?
                                            (i.info = n) :
                                            n ?
                                            ((i = new l.CardType3Com(
                                                    cc.instantiate(this.ItemView),
                                                    n
                                                )),
                                                this._layout.addChild(i.view),
                                                this.addCom(i)) :
                                            this.removeCom(this.coms[this.coms.length - 1]);
                                    }
                                    var r = c.default.getComponent(cc.Layout, this._layout);
                                    r.updateLayout(),
                                        (r = c.default.getComponent(
                                            cc.Layout,
                                            this.view
                                        )).updateLayout();
                                } else this.view.parent = null;
                            }),
                            e
                        );
                    })(r.UIComponent);
                (o.CardType3 = u), console.log("end");
            module.exports =  e.exports;